<%@page import="com.nxu.biz.impl.BooksBizImpl"%>
<%@page import="com.nxu.biz.BooksBiz"%>
<%@page import="com.nxu.entity.BookBean"%>
<%@ page language="java" contentType="application/json; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String isbn = request.getParameter("isbn");
BooksBiz biz = new BooksBizImpl();
BookBean book = biz.getBookByIsbn(isbn);

if (book != null) {
    out.print("{");
    out.print("\"isbn\":\"" + book.getIsbn() + "\",");
    out.print("\"title\":\"" + book.getTitle() + "\",");
    out.print("\"copyright\":\"" + book.getCopyright() + "\",");
    out.print("\"editionnumber\":" + book.getEditionnumber() + ",");
    out.print("\"publisherid\":" + book.getPublisherid() + ",");
    out.print("\"price\":" + book.getPrice());
    out.print("}");
} else {
    out.print("{}");
}
%>